Read File - Get the ASCII content of a resource file
This action reads a resource file and returns its content
as a buffer of ASCII characters.
The term "resource file" refers to a file that is considered part of the
application's model (and hence stored in the model repository of the Tersus
project). A typical usage would be to store in a file some configuration information
which is read by the application at initialization.
To read the content of a resource file as a binary stream of data, use
Read Binary File.
To read the content of an arbitrary file at runtime (also as a binary stream of data),
use Read Resource.
To allow the user to read the content of an arbitrary file at runtime,
use the File Input Field
display element.
Trigger [required]
<File Name> (non-repetitive text trigger [required]): The name
of a resource file to be read (a path relative to the "models" folder of the
current Tersus project).
Exit
<File Text> (non-repetitive text exit [required]):
The content of the file (a buffer of ASCII characters).
Usage Example
"Examples/Math/Factorial/Help/Init" from in "Examples" project: